package com.gitee.neuray.security.par.statisticalreport.biz;

import com.gitee.neuray.security.admin.dto.AdminOrgDto;
import com.gitee.neuray.security.common.util.Query;
import com.gitee.neuray.security.par.examperiod.vo.ExamperiodVo;
import com.gitee.neuray.security.par.statisticalreport.mapper.StatisticalReportMapper;
import com.gitee.neuray.security.par.statisticalreport.vo.ParContentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


/**
 * @author th
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class StatisticalReportBiz {
    @Autowired
    private StatisticalReportMapper statisticalReportMapper;

    /**
     * 横向
     * @return
     */
    public List<Map<String,Object>> horizontal(){
        return statisticalReportMapper.horizontal();
    }

    /**
     * 纵向
     * @return
     */
    public List<AdminOrgDto> vertical(){
        List<AdminOrgDto> adminOrgDtos = statisticalReportMapper.vertical();
        return adminOrgDtos;
    }

    /**
     * 内容
     * @return
     */
    public List<ParContentVo> content(Query query){
        return statisticalReportMapper.content(query);
    }

    /**
     * 获取考核周期内容
     * @return
     */
    public List<ExamperiodVo> parExamPeriodInfo(){
        return statisticalReportMapper.parExamPeriodInfo();
    }

}
